export default function () {
  let sys = {}
  const userAgent = navigator.userAgent; 
  sys.opera = userAgent.indexOf("Opera") > -1; 
  sys.maxthon = userAgent.indexOf("Maxthon") > -1 ; 
  sys.ie = userAgent.indexOf("Edge") > -1 || (userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !sys.opera) ; 
  sys.firefox = userAgent.indexOf("Firefox") > -1 ; 
  sys.safari = userAgent.indexOf("Safari") > -1 && userAgent.indexOf("Chrome") < 1 ; 
  sys.chrome = userAgent.indexOf("Chrome") > -1 ;
  sys.ie5 = sys.ie6 = sys.ie7 = sys.ie8 = false;
  
  return sys
}

// export default function() {
//   let isRenderLinearGradient = false;

//   var browser = new UAParser().getBrowser();
//   var CHROME = "Chrome";
//   var IE = "IE";
//   var FIREFOX = "Firefox";
//   var CHROME_VERSION = 40;
//   var IE_VERSION = 11;
//   var EDGE_VERSION = 14;

//   if (
//     (browser.name === CHROME && +browser.major >= CHROME_VERSION) || 
//     (browser.name === FIREFOX)
//   ) {
//     isRenderLinearGradient = true;
//   } else {
//     isRenderLinearGradient = false;
//   }
//   console.info("isRenderLinearGradient: ", isRenderLinearGradient, browser);

//   return isRenderLinearGradient;
// }